from PyQt5.QtWidgets import QApplication, QColorDialog
import sys

app = QApplication(sys.argv)
color = QColorDialog().getColor()
if color.isValid():
    print(color.name())
sys.exit(app.exec_())